<{*充值日志*}>
<div class="row">
	<div id="breadcrumb" class="col-md-12">
		<ol class="breadcrumb">
			<li><a href="#">Dashboard</a></li>
			<li><a href="#">Tables</a></li>
			<li><a href="#">Data Tables</a></li>
		</ol>
	</div>
</div>
<div class="row">
	<div class="col-xs-12">
		<div class="box">
			<div class="box-header">
				<div class="box-name">
					<i class="fa fa-usd"></i>
					<span>充值记录</span>
				</div>
				<div class="box-icons">
					<a class="collapse-link">
						<i class="fa fa-chevron-up"></i>
					</a>
					<a class="expand-link">
						<i class="fa fa-expand"></i>
					</a>
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
				<div class="no-move"></div>
			</div>
			<div class="box-content no-padding">
				<table class="table table-bordered table-striped table-hover table-heading table-datatable" id="datatable-1">
					<thead>
						<tr>
							<th>渠道</th>
							<th>账号</th>
							<th>角色</th>
							<th>区服</th>
							<th>地区</th>
							<th>充值金额</th>
							<th>充值前游戏币</th>
							<th>充值后游戏币</th>
							<th>优惠券</th>
							<th>充值时间</th>
							<th>异常说明</th>
						</tr>
					</thead>
					<tbody>
					<!-- Start: list_row -->
					<{foreach from=$list item=item}>
						<tr>
							<td><{$item['channel']}></td>
							<td><{$item['account']}></td>
							<td><{$item['role']}></td>
							<td><{$item['server']}></td>
							<td><{$item['area']}></td>
							<td><{$item['money']}></td>
							<td><{$item['gameMoney_before']}></td>
							<td><{$item['gameMoney_final']}></td>
							<td><{$item['coupon']}></td>
							<td><{$item['addDate']}></td>
							<td><{$item['rechargeMem']}></td>


						</tr>

					<{/foreach}>

					<!-- End: list_row -->

					</tbody>
					<tfoot>
						<tr>
							<th>渠道</th>
							<th>账号</th>
							<th>角色</th>
							<th>区服</th>
							<th>地区</th>
							<th>充值金额</th>
							<th>充值前游戏币</th>
							<th>充值后游戏币</th>
							<th>优惠券</th>
							<th>充值时间</th>
							<th>异常说明</th>
						</tr>
					</tfoot>
				</table>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
// Run Datables plugin and create 3 variants of settings
function AllTables(){
	TestTable1();
	LoadSelect2Script(MakeSelect2);
}
function MakeSelect2(){
	$('select').select2();
	$('.dataTables_filter').each(function(){
		$(this).find('label input[type=text]').attr('placeholder', 'Search');
	});
}
$(document).ready(function() {
	LoadDataTablesScripts(AllTables);
	WinMove();
});



(function ($) {
	'use strict';
	$.fn.uploader = function () {
		return this.each(function () {
			var $this = $(this);
			var $img = $this.find('img');
			var $file = $this.find('input[type=file]');
			var $hidden = $this.find('input[type=hidden]');
			var $txt = $this.find('i.uptxt');
			$file.AjaxFileUpload({
				action: '<{u("ajaxUpload?tp="|cat:$filefor)}>',
				onSubmit: function () {
					$txt.text('上传中');
				},
				onComplete: function (filename, response) {
					if(parseInt(response.id)>0){
						$txt.text("上传成功");
						$hidden.attr('value', response.msg);
						$img.attr("src",response.msg);
						$('#imgBox').show();
					}else{
						$txt.text(response.msg);
					}

				}
			});
		});
	}
})(jQuery);



</script>
